/*
 * Service.java
 *
 * Created on 07 March 2006, 15:40
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package web.services;
import javax.servlet.http.HttpSession;
import web.ApplicationController;
import web.util.BusinessFacadeDelegate;
/**
 *
 * @author Phil
 */
public abstract class GenericService implements Service {
    
    protected static final String MEETING_ID = "meetingId";
    protected static final String MEETING_TITLE = "meetingTitle";
    protected static final String MEETING_DURATION = "meetingDuration";
    protected static final String MEETING_DURATION_DAY = "meetingDurationDay";
    protected static final String MEETING_DURATION_HOUR = "meetingDurationHour";
    protected static final String MEETING_DURATION_MIN = "meetingDurationMin";
    protected static final String MEETING_DESCRIPTION = "meetingDescription";   
    protected static final String MEETING_START_DATE = "meetingStartDate";
    protected static final String MEETING_END_DATE = "meetingEndDate";
    protected static final String MEETING_VENUE = "meetingRoomList";
    protected static final String MEETING_ROOM_SIZE = "meetingRoomSize";
    
    protected static final String ADMIN_EMAIL = "email";
    protected static final String ADMIN_FIRST_NAME = "firstName";
    protected static final String ADMIN_SURNAME = "surname";
    protected static final String ADMIN_PASSWORD = "password";
    
    protected static final String ADMIN_GROUP_ID = "groupName";
    
    protected static final String ADMIN_GROUP_EMAIL = "groupEmail";
    protected static final String ADMIN_GROUP_TO_ADD = "groupToAdd";
    
    protected static final String MEETING_PART_LIST = "meetingPartList";
    
    
    protected BusinessFacadeDelegate getDelegate (HttpSession session) {
        return (BusinessFacadeDelegate) session.getAttribute(ApplicationController.BUSINESS_DELEGATE_REF);
    }
    
}
